<?php

require_once( 'mvc/controller.php' );

abstract class Flexical_Admin_Controller extends MVC_Controller
{
	protected $dao;

	private function initialize_dao()
	{
		require_once( 'flexical/service/dao.php' );
		$this->dao = new Flexical_Service_DAO();
	}

	protected function get_dao()
	{
		if ( $this->dao == null )
		{
			$this->initialize_dao();
		}

		return $this->dao;
	}
}

?>
